package com.yunkeji.api.common.controller;

import com.yunkeji.api.common.mapper.ApiSysVoiceIntroMapper;
import com.yunkeji.api.common.vo.VoiceVo;
import com.yunkeji.common.core.controller.BaseController;
import com.yunkeji.common.core.domain.R;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 语音介绍示例
 *
 * @author 老张
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/v1/voice")
public class VoiceController extends BaseController {

    private final ApiSysVoiceIntroMapper apiSysVoiceIntroMapper;

    /** 获取语音介绍示例 */
    @PostMapping(value = "/getOne")
    public R<VoiceVo> getOne() {
        return R.ok(apiSysVoiceIntroMapper.getOne());
    }
}
